correction sftp
authorrominique <romain.legoff@heureux-cyclage.org>
Fri, 10 May 2024 13:29:51 +0000 (15:29 +0200)
committerrominique <romain.legoff@heureux-cyclage.org>
Fri, 10 May 2024 13:29:51 +0000 (15:29 +0200)
creation_nouveau_site.yml
tasks/config_options_www.yml
tasks/config_sftp.yml

index 4759c12..c5ca22c 100644 (file)
 
     - name: Inclure le configuration SFTP
       ansible.builtin.include_tasks: tasks/config_sftp.yml
-      when: sftp == 'oui'
+      when: sftp_key =! '' and sftp_key =! 'non'
index 22fb7b0..b55a387 100644 (file)
@@ -12,7 +12,7 @@
         config_ss_domain: "{{ config_ss_domain_promp.user_input | default(SITE) }}"
 
 - name: Bloc demande des autres options
-  when: SITE != 'paheko' #and SITE != 'WP'
+  when: SITE != 'paheko' # and SITE != 'WP'
   block:
 
     - name: Demande php
index 92212da..2b8c446 100644 (file)
@@ -35,6 +35,5 @@
     owner: "site_{{ SIGLE }}_{{ SITE }}"
     group: "site_{{ SIGLE }}_{{ SITE }}"
     mode: '600'
-  when: sftp_key is defined
 
 # verif le serveur openssh est bien config et sinon le faire? + reload